<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
<title>W3Cschool(w3cschool.cn)</title> 
</head>
<body>

<form action="/statics/demosource/demo-form.php" id="form1">
   First name: <input type="text" name="fname1"><br>  
   password: <input type="text" name="psw1"><br>
   <input type="submit" value="提交">
</form>

<form action="/statics/demosource/demo-form.php" id="form2">
   First name: <input type="text" name="fname2"><br>  
   password: <input type="text" name="psw2"><br>
   <input type="submit" value="提交">
</form>

   Last name: <input type="text" name="liuName" form="form2">
   
<p> "Last name" 字段没有在form表单之内，但它也是form表单的一部分。</p>



<p><b>注意:</b> IE不支持form属性</p>

</body>
</html>